package com.superme.common.constant;

/**
 * 描述: 常量类，包含应用程序中使用的固定字符串值。
 * 作者: yanruizhi
 * 时间: 2023/7/4 10:51
 */
public class Constants {


    //跨域预检接口 (任何人都允许访问)
    public static final String[] CROSS_WHITELIST = {
            "/webjars/**",
            "/druid/**",
            "/",
            "/swagger-ui/**",
            "/swagger-ui.html/**",
            "/swagger-resources/**",
            "/*/api-docs/**",
            "/sys-login/captcha.jpg",
            "/sys-login/login"

    };

    public static final String TOKEN = "token";    //用户登录状态请求头名称
    public static final Integer TIME_ONE_DAY = 86400; //一天的秒数
    public static final Integer TIME_ONE_MONTH = 30 * 86400; //30天的秒数
    public static final Integer TIME_ONE_HALF_MONTH = 15 * 86400; //15天的秒数
    public static final Integer DELAYED_QUEUE_MAX_TIME = 24 * 86400; //延时消息最长时间限制


    public static final Integer TIME_ONE_YEAR = 10;


    public static final String DELAY_EXCHANGE_NAME = "delayed_exchange";
    public static final String DELAY_QUEUE_NAME = "delay_queue";
    public static final String DELAY_ROUTING_KEY = "delay_routing_key";

}
